.class public abstract Lcom/estrongs/android/widget/o;
.super Lcom/estrongs/android/widget/n;
.source "PopupWindowWithArrow.java"


# instance fields
.field protected E:Landroid/content/Context;

.field private F:Landroid/view/View;

.field private G:Ljava/lang/String;

.field private H:Landroid/view/View;

.field private I:I

.field private J:I

.field private K:Landroid/widget/ImageView;

.field private L:Landroid/widget/ImageView;

.field private M:Landroid/widget/ImageView;

.field private N:Landroid/widget/ImageView;

.field private O:I

.field private P:I

.field protected Q:Lcom/estrongs/android/ui/theme/b;

.field private R:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/View;Ljava/lang/String;ILandroid/graphics/Rect;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p2, p5}, Lcom/estrongs/android/widget/n;-><init>(Landroid/view/View;Landroid/graphics/Rect;)V

    const/4 p5, 0x1

    .line 2
    iput-boolean p5, p0, Lcom/estrongs/android/widget/o;->R:Z

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/widget/o;->F:Landroid/view/View;

    .line 5
    iput-object p3, p0, Lcom/estrongs/android/widget/o;->G:Ljava/lang/String;

    .line 6
    iput-boolean p6, p0, Lcom/estrongs/android/widget/o;->R:Z

    .line 7
    invoke-virtual {p0, p4}, Lcom/estrongs/android/widget/n;->a(I)V

    .line 8
    invoke-direct {p0}, Lcom/estrongs/android/widget/o;->k()V

    return-void
.end method

.method private d(I)V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->c()Landroid/graphics/Rect;

    move-result-object p1

    if-nez p1, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/widget/o;->F:Landroid/view/View;

    const/4 v0, 0x0

    invoke-super {p0, p1, v0, v0, v0}, Lcom/estrongs/android/widget/n;->a(Landroid/view/View;III)V

    return-void
.end method

.method private k()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/widget/o;->Q:Lcom/estrongs/android/ui/theme/b;

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c02c6

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->Q:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0807ee

    .line 4
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    invoke-virtual {p0, v1}, Lcom/estrongs/android/widget/n;->b(Landroid/view/View;)V

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f08012a

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/estrongs/android/widget/n;->a(Landroid/graphics/drawable/Drawable;)V

    .line 7
    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v0

    div-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/estrongs/android/widget/o;->P:I

    iput v0, p0, Lcom/estrongs/android/widget/o;->O:I

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->G:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/o;->a(Ljava/lang/String;)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    const-string v1, "window"

    .line 10
    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    .line 11
    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Display;->getWidth()I

    move-result v1

    iput v1, p0, Lcom/estrongs/android/widget/o;->I:I

    .line 12
    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Display;->getHeight()I

    move-result v1

    iput v1, p0, Lcom/estrongs/android/widget/o;->J:I

    .line 13
    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    const/4 v0, -0x1

    .line 14
    invoke-virtual {p0, v0, v0}, Lcom/estrongs/android/widget/n;->a(II)V

    .line 15
    iget v0, p0, Lcom/estrongs/android/widget/o;->I:I

    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/n;->c(I)V

    .line 16
    iget v0, p0, Lcom/estrongs/android/widget/o;->J:I

    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/n;->b(I)V

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v1, 0x7f090908

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/widget/o;->K:Landroid/widget/ImageView;

    const/16 v1, 0x8

    .line 18
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v2, 0x7f090905

    .line 20
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/widget/o;->L:Landroid/widget/ImageView;

    .line 21
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v2, 0x7f090906

    .line 23
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/widget/o;->M:Landroid/widget/ImageView;

    .line 24
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v2, 0x7f090907

    .line 26
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/estrongs/android/widget/o;->N:Landroid/widget/ImageView;

    .line 27
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    const/4 v0, 0x1

    .line 28
    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/n;->a(Z)V

    .line 29
    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/n;->c(Z)V

    const/4 v0, 0x0

    .line 30
    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/n;->b(Z)V

    .line 31
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->F:Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/estrongs/android/widget/n;->a(Landroid/view/View;)V

    .line 32
    invoke-direct {p0}, Lcom/estrongs/android/widget/o;->m()V

    .line 33
    invoke-virtual {p0}, Lcom/estrongs/android/widget/o;->i()V

    return-void
.end method

.method private l()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v1, 0x7f09090c

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/widget/o;->G:Ljava/lang/String;

    if-eqz v1, :cond_0

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/widget/o;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method private m()V
    .locals 5

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/o;->R:Z

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->d()I

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_3

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->K:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->K:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v0

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->c()Landroid/graphics/Rect;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Rect;->centerX()I

    move-result v1

    div-int/lit8 v2, v0, 0x2

    sub-int/2addr v1, v2

    .line 6
    iget v2, p0, Lcom/estrongs/android/widget/o;->O:I

    if-ge v1, v2, :cond_1

    move v1, v2

    goto :goto_0

    .line 7
    :cond_1
    iget v2, p0, Lcom/estrongs/android/widget/o;->I:I

    iget v3, p0, Lcom/estrongs/android/widget/o;->P:I

    sub-int v4, v2, v3

    sub-int/2addr v4, v0

    if-le v1, v4, :cond_2

    sub-int/2addr v2, v3

    sub-int v1, v2, v0

    .line 8
    :cond_2
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v2, 0x7f09090b

    .line 9
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 10
    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    goto/16 :goto_4

    .line 11
    :cond_3
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->d()I

    move-result v0

    const/4 v2, 0x1

    if-ne v0, v2, :cond_6

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->L:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->L:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v0

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->c()Landroid/graphics/Rect;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Rect;->centerX()I

    move-result v1

    div-int/lit8 v2, v0, 0x2

    sub-int/2addr v1, v2

    .line 15
    iget v2, p0, Lcom/estrongs/android/widget/o;->O:I

    if-ge v1, v2, :cond_4

    move v1, v2

    goto :goto_1

    .line 16
    :cond_4
    iget v2, p0, Lcom/estrongs/android/widget/o;->I:I

    iget v3, p0, Lcom/estrongs/android/widget/o;->P:I

    sub-int v4, v2, v3

    sub-int/2addr v4, v0

    if-le v1, v4, :cond_5

    sub-int/2addr v2, v3

    sub-int v1, v2, v0

    .line 17
    :cond_5
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v2, 0x7f09090a

    .line 18
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 19
    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    goto/16 :goto_4

    .line 20
    :cond_6
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->d()I

    move-result v0

    const/high16 v2, 0x42580000    # 54.0f

    const/4 v3, 0x2

    if-ne v0, v3, :cond_9

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->M:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->M:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v0

    .line 23
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->c()Landroid/graphics/Rect;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/Rect;->centerY()I

    move-result v3

    div-int/lit8 v4, v0, 0x2

    sub-int/2addr v3, v4

    iget-object v4, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    iget v4, v4, Landroid/graphics/Rect;->top:I

    sub-int/2addr v3, v4

    iget-object v4, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    .line 24
    invoke-static {v4, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v2

    sub-int/2addr v3, v2

    if-gez v3, :cond_7

    goto :goto_2

    .line 25
    :cond_7
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v1

    iget v2, p0, Lcom/estrongs/android/widget/o;->P:I

    sub-int/2addr v1, v2

    sub-int/2addr v1, v0

    if-le v3, v1, :cond_8

    .line 26
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v1

    iget v2, p0, Lcom/estrongs/android/widget/o;->P:I

    sub-int/2addr v1, v2

    sub-int/2addr v1, v0

    goto :goto_2

    :cond_8
    move v1, v3

    .line 27
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->M:Landroid/widget/ImageView;

    .line 28
    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 29
    iput v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    goto :goto_4

    .line 30
    :cond_9
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->d()I

    move-result v0

    const/4 v3, 0x3

    if-ne v0, v3, :cond_c

    .line 31
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->N:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 32
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->N:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v0

    .line 33
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->c()Landroid/graphics/Rect;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/Rect;->centerY()I

    move-result v3

    div-int/lit8 v4, v0, 0x2

    sub-int/2addr v3, v4

    iget-object v4, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    iget v4, v4, Landroid/graphics/Rect;->top:I

    sub-int/2addr v3, v4

    iget-object v4, p0, Lcom/estrongs/android/widget/o;->E:Landroid/content/Context;

    .line 34
    invoke-static {v4, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v2

    sub-int/2addr v3, v2

    if-gez v3, :cond_a

    goto :goto_3

    .line 35
    :cond_a
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v1

    iget v2, p0, Lcom/estrongs/android/widget/o;->P:I

    sub-int/2addr v1, v2

    sub-int/2addr v1, v0

    if-le v3, v1, :cond_b

    .line 36
    iget-object v1, p0, Lcom/estrongs/android/widget/n;->B:Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v1

    iget v2, p0, Lcom/estrongs/android/widget/o;->P:I

    sub-int/2addr v1, v2

    sub-int/2addr v1, v0

    goto :goto_3

    :cond_b
    move v1, v3

    .line 37
    :goto_3
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->N:Landroid/widget/ImageView;

    .line 38
    invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 39
    iput v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    :cond_c
    :goto_4
    return-void
.end method


# virtual methods
.method protected a(Landroid/view/View;Landroid/widget/FrameLayout$LayoutParams;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v1, 0x7f090909

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout;

    .line 3
    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    .line 4
    invoke-virtual {v0, p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/widget/o;->G:Ljava/lang/String;

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/widget/o;->l()V

    return-void
.end method

.method protected h()Landroid/widget/RelativeLayout;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const v1, 0x7f09090d

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method protected abstract i()V
.end method

.method public j()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->e()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->c()Landroid/graphics/Rect;

    move-result-object v0

    invoke-virtual {v0}, Landroid/graphics/Rect;->centerY()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/estrongs/android/widget/o;->d(I)V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-ne v0, v1, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/widget/o;->H:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/widget/n;->g()V

    :cond_1
    :goto_0
    return-void
.end method
